rewrite a logarithm using the change of base formula